package base

import "JVM/Jvmgo/GoToJVM/runtimeData"

// 跳转逻辑

func Branch(frame *runtimeData.Frame, offset int) {
	pc := frame.Thread().PC()
	nextPC := pc + offset
	frame.SetNextPC(nextPC)
}
